home *** CD-ROM | disk | FTP | other *** search
/ Champak 128 / Vol 128 (Damaged).iso / games / fire_it_.swf / scripts / __Packages / #68.as < prev    next >
Encoding:
Text File  |  2011-03-26  |  1.5 KB  |  66 lines

  1. class ┬º#68┬º
  2. {
  3.    function ┬º#68┬º(name, type, x, y, ┬º#204┬º)
  4.    {
  5.       this.x = x;
  6.       this.y = y;
  7.       this.name = name;
  8.       this.type = type;
  9.       this["#204"] = ┬º#204┬º;
  10.       this["#59"] = true;
  11.       this["#111"]();
  12.       this.bonusObject._visible = false;
  13.    }
  14.    function ┬º#450┬º()
  15.    {
  16.       this.bonusObject._visible = false;
  17.       this.bonusObject.unloadMovie();
  18.    }
  19.    function ┬º#45┬º()
  20.    {
  21.       this.bonusObject._visible = false;
  22.       this.bonusObject.unloadMovie();
  23.       this.bonusObject = null;
  24.    }
  25.    function hide()
  26.    {
  27.       this.bonusObject._visible = false;
  28.    }
  29.    function show()
  30.    {
  31.       this.bonusObject._visible = true;
  32.    }
  33.    function ┬º#111┬º()
  34.    {
  35.       if(this["#59"])
  36.       {
  37.          if(this.bonusObject != null)
  38.          {
  39.             this["#45"]();
  40.          }
  41.          this.bonusObject = _root.attachMovie("bonus_" + this.type + "_dark",this.name + "_" + this.type + "_dark",this["#204"]);
  42.          this.bonusObject._x = this.x;
  43.          this.bonusObject._y = this.y;
  44.          this["#59"] = false;
  45.       }
  46.    }
  47.    function ┬º#273┬º()
  48.    {
  49.       if(!this["#59"])
  50.       {
  51.          if(this.bonusObject != null)
  52.          {
  53.             this["#45"]();
  54.          }
  55.          this.bonusObject = _root.attachMovie("bonus_" + this.type + "_lit",this.name + "_" + this.type + "_lit",this["#204"]);
  56.          this.bonusObject._x = this.x;
  57.          this.bonusObject._y = this.y;
  58.          this["#59"] = true;
  59.       }
  60.    }
  61.    function ┬º#460┬º()
  62.    {
  63.       return this["#59"];
  64.    }
  65. }
  66.